#!/usr/bin/python
# -*- coding: cp1252 -*-

import os
fileList = [f for f in os.listdir('.') if f[-2:] in ('pp', '.h')]
nbLine = 0
for fileName in fileList:
    f = open(fileName)
    nbLine+=len(f.readlines())
    f.close();
print "_"*25+'\n'+"-"*25
print nbLine,"lignes ecrites !"
print "_"*25+'\n'+"-"*25
